package us.gaaoc.framework.manager;

import java.util.List;

import us.gaaoc.framework.dao.ModelFacade;
import us.gaaoc.framework.dao.ModelFacadeHibernate;
import us.gaaoc.framework.model.Organizations;

/**
 * This class manages the Organization
 * @author Sukahda Tapshalkar
 * Sep 5, 2006
 *
 */
public class OrganizationManager {
	/**
	 * properties
	 */
	private ModelFacade modelFacade;
	private List<Organizations> allOrganizations;
	
	/**
	 * Constructor
	 *
	 */
	public OrganizationManager() {
		this.modelFacade = ModelFacadeHibernate.getInstance();
	}
	
	/**
	 * This method returns the list of all Organizations
	 * @return List of Organizations
	 */
	public List<Organizations> getAllOrganizations() {
		this.allOrganizations = this.modelFacade.findAllOrganizations();
		return allOrganizations;
	}

	/**
	 * This method sets the List of Organizations.
	 * @param allOrganizations
	 */
	public void setAllOrganizations(List<Organizations> allOrganizations) {
		this.allOrganizations = allOrganizations;
	}
}
